package cn.sofwin.day0123.homework.t01;
/**
 * 父类
 * @author 仙女本仙
 * @email 1335651292@qq.com
 */
public class Person {
    /** 姓名*/
    private String name;

    /** 工号 */
    private String jnumber;

    /** 工资 */
    private double salary;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJnumber() {
        return jnumber;
    }

    public void setJnumber(String jnumber) {
        this.jnumber = jnumber;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public Person(String name, String jnumber, double salary) {
        this.name = name;
        this.jnumber = jnumber;
        this.salary = salary;
    }

    public void work(){
        System.out.println("姓名：" + name + "  工号：" + jnumber + "  工资：" + salary);
    }
}
